//
//  HomeButtomView.swift
//  我的微博
//
//  Created by shmily on 15/8/2.
//  Copyright © 2015年 Stanford-IOS8-Swift-shmilyAshen. All rights reserved.
//

import UIKit

class HomeBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = UIColor.whiteColor()
        
        setUpUI()
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //设置视图
    private func setUpUI() {
        addSubview(btnTransmit)
        addSubview(btnCommit)
        addSubview(btnLike)
        
        //布局
        ff_HorizontalTile([btnTransmit,btnCommit,btnLike], insets: UIEdgeInsetsZero)
    }
    
    //MARK:- 懒加载
    //转发视图
    private lazy var btnTransmit: UIButton = UIButton(imageName: "timeline_icon_retweet", text: " 转发", fontSize: 14, color: UIColor.darkTextColor())
    //评论视图
    private lazy var btnCommit: UIButton = UIButton(imageName: "timeline_icon_comment", text: " 评论", fontSize: 14, color: UIColor.darkTextColor())
    //赞视图
    private lazy var btnLike: UIButton = UIButton(imageName: "timeline_icon_unlike", text: " 赞", fontSize: 14, color: UIColor.darkTextColor())
}
